<?php
include 'PlayFabHttp.php';

class PlayFab<%- api.name %>Api
{
<% for(var i in api.calls) { var apiCall = api.calls[i];
%><%- generateApiSummary("    ", apiCall, "summary", "https://docs.microsoft.com/rest/api/playfab/" + api.name.toLowerCase() + "/" + apiCall.subgroup.toLowerCase().replaceAll(" ","-") + "/" + apiCall.name.toLowerCase())
%>    public static function <%- apiCall.name %>($titleId, <%- getAuthInputParams(apiCall) %>$request)
    {
<%- getRequestActions("        ", apiCall) %>
        $result = PlayFabHttp::MakeCurlApiCall($titleId, "<%- apiCall.url %>", $request, <%- getCurlAuthParams(apiCall) %>);
        return $result;
    }
<%- getCustomApiSignatures(api, sourceDir, apiCall) %>
<% } %>}
?>
